
package timeitj.ejb.persons;

import java.util.List;
import javax.ejb.Local;
import timeitj.ejb.persistence.PersistenceManager;
import timeitj.persistence.Person;

/**
 * This is the business interface for UserManager enterprise bean.
 */
@Local
public interface PersonManager extends PersistenceManager<Person, Long> {
    
    /**
     * Gets a person by its login.
     * @param login The persons login
     * @return Returns the person for the given login as an instance 
     * of timeitj.persistence.Person
     */    
    public Person getPersonByLogin(String login);

    List<Person> getAllPersons();
}
